import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class CargoForecast {
  /**
   * 查询仓库列表
   */
  static list(data = {}) {
    return request.get(`${URL.ocean}/ocean-forecast/list`, data)
  }

  /**
   * 查询仓库详情
   */
  static getInfo(id) {
    return request.get(`${URL.ocean}/ocean-forecast/getInfo/${id}`)
  }
  /**
   * 删除仓库
   */
  static remove(ids) {
    return request.delete(`${URL.ocean}/ocean-forecast/remove`, ids)
  }
  /**
   * 新增仓库
   */
  static add(data = {}) {
    return request.post(`${URL.ocean}/ocean-forecast/add`, data)
  }
  /**
   * 修改仓库
   */
  static edit(data = {}) {
    return request.put(`${URL.ocean}/ocean-forecast/edit`, data)
  }

  static transferOrder(data = {}) {
    return request.post(`${URL.ocean}/ocean-forecast/transferOrder`, data)
  }

  static forecastDashboard(data = {}) {
    return request.get(`${URL.ocean}/ocean-forecast/forecastDashboard`, data)
  }
}
